#ifndef SHOGIREGISTRY_H_INCLUDED
#define SHOGIREGISTRY_H_INCLUDED

#include <QString>
#include "ssmainwindow.h"

class ShogiServerMainWindow;


#define LOGSERVER(textstring) ShogiRegistry::instance()->outputServerStatus(textstring);

class ShogiRegistry
{
public:
	static ShogiRegistry* instance();
	void setParent( ShogiServerMainWindow* pParent) { m_pParent = pParent;}	
	void outputServerStatus(QString str);
	ShogiServerMainWindow* getParent() { return m_pParent;	}


private:
	ShogiRegistry() {};
	static ShogiRegistry* m_pInstance;
	ShogiServerMainWindow* m_pParent;

};

#endif // SHOGIREGISTRY_H_INCLUDED

